import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';

export const columns: BasicColumn[] = [
    {
    title: '资产组名称',
    dataIndex: 'groupName'
   },
   {
    title: '资产组code',
    dataIndex: 'groupCode'
   },
   {
    title: '描述',
    dataIndex: 'description'
   },
   {
    title: '删除状态',
    dataIndex: 'delFlag'
   },
   {
    title: '租户ID',
    dataIndex: 'tenantId'
   },
   {
    title: '编组类别',
    dataIndex: 'type'
   },
];

export const searchFormSchema: FormSchema[] = [
 {
    label: '资产组名称',
    field: 'groupName',
    component: 'Input'
  },
 {
    label: '资产组code',
    field: 'groupCode',
    component: 'Input'
  },
];

export const formSchema: FormSchema[] = [
  // TODO 主键隐藏字段，目前写死为ID
  {label: '', field: 'id', component: 'Input', show: false},
  {
    label: '资产组名称',
    field: 'groupName',
    component: 'Input',
  },
  {
    label: '资产组code',
    field: 'groupCode',
    component: 'Input',
  },
  {
    label: '描述',
    field: 'description',
    component: 'Input',
  },
  {
    label: '删除状态',
    field: 'delFlag',
    component: 'InputNumber',
  },
  {
    label: '租户ID',
    field: 'tenantId',
    component: 'InputNumber',
  },
  {
    label: '编组类别',
    field: 'type',
    component: 'Input',
  },
];
